<?php  
/*------------------------------------------------------------------------
# author    Sofia P.
# copyright Copyright © 2012 example.com. All rights reserved.
# @license  http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website   http://www.example.com
-------------------------------------------------------------------------*/

defined( '_JEXEC' ) or die; 

// variables
$app = JFactory::getApplication();
$doc = JFactory::getDocument(); 
$params = &$app->getParams();
$pageclass = $params->get('pageclass_sfx');
$tpath = $this->baseurl.'/templates/'.$this->template;

$this->setGenerator(null);
?><!doctype html>
<head>
	<?php
	// load sheets and scripts
	$doc->addStyleSheet($tpath.'/css/template.css.php?v=1.0.0'); 
//	$doc->addScript($tpath.'/js/modernizr.js'); // <- this script must be in the head
	?>
	<script type="text/javascript" src="<?php echo $tpath.'/js/template.js.php'; ?>"></script>
	<jdoc:include type="head" />
	
	<link rel="stylesheet" href="<?php echo $tpath.'/css/reset.css' ?>" type="text/css" media="all">
	<link rel="stylesheet" href="<?php echo $tpath.'/css/layout.css' ?>" type="text/css" media="all">
	<link rel="stylesheet" href="<?php echo $tpath.'/css/style.css' ?>" type="text/css" media="all">
	
	<script type="text/javascript" src="<?php echo $tpath.'/js/jquery-1.6.js' ?>" ></script>
	<script type="text/javascript" src="<?php echo $tpath.'/js/cufon-yui.js' ?>"></script>
	<script type="text/javascript" src="<?php echo $tpath.'/js/cufon-replace.js' ?>"></script>
	<script type="text/javascript" src="<?php echo $tpath.'/js/Didact_Gothic_400.font.js' ?>"></script>
	<script type="text/javascript" src="<?php echo $tpath.'/js/jquery.nivo.slider.pack.js' ?>"></script>
	<script type="text/javascript" src="<?php echo $tpath.'/js/atooltip.jquery.js' ?>"></script>
	<?php /*?><script type="text/javascript" src="<?php echo $tpath.'/js/jquery.jqtransform.js' ?>" ></script><?php */?>
	<script type="text/javascript" src="<?php echo $tpath.'/js/script.js' ?>"></script>
		
</head>
	
<body class="<?php echo $pageclass; ?>">
	<div class="body1">
		<div class="main">
			<!-- header -->
			<div class="header">
				<h1><a href="/" id="logo"></a></h1>
				<div class="wrapper">
					<ul id="icons">
						<li><a href="#" class="normaltip" title="Facebook"><img src="<?php echo $tpath.'/images/icon1.jpg'; ?>" alt=""></a></li>
						<li><a href="#" class="normaltip" title="Twitter"><img src="<?php echo $tpath.'/images/icon2.jpg'; ?>" alt=""></a></li>
						<li><a href="#" class="normaltip" title="Linkedin"><img src="<?php echo $tpath.'/images/icon3.jpg'; ?>" alt=""></a></li>
					</ul>
				</div>
				<div class="nav">
					<jdoc:include type="modules" name="position-0" />
				</div>
			</div>
			<!-- / header -->
		</div>
	</div>
	
	
	<!-- content -->
	<?php
	if($this->countModules('position-12') || $this->countModules('position-7')){
	?>
	<div class="body2">
		<div class="main">
			<div id="content">
				<div class="wrapper">
					<div class="col1">
						<jdoc:include type="modules" name="position-12" />
					</div>
					<div class="col2">
						<jdoc:include type="modules" name="position-7" />
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php
	}
	?>
	<div class="body3">
		<div class="main">
			<div id="content2">
				<div class="wrapper">
					<?php /*?><jdoc:include type="message" /><?php */?>
                    <jdoc:include type="component" />
				</div>
			</div>
		</div>
	</div>
	<!-- / content -->
	
	<div class="body4">
		<div class="main">
			<!-- footer -->
			<div class="footer">
				Design e programação <a href="http://www.bhzdesign.pt/" target="_blank">BHZ Design</a><br>
				&copy; <?php echo date('Y') ?> Venda Você Mesmo
				<!-- {%FOOTER_LINK} -->
			</div>
			<!-- / footer -->
		</div>
	</div>
	<jdoc:include type="modules" name="debug" />
</body>
</html>